vchiq_arm: Avoid use of mutex in add_completion
authorPhil Elwell <phil@raspberrypi.org>
Mon, 20 Jun 2016 12:51:44 +0000 (13:51 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:30 +0000 (17:28 +0000)
commitb34a674509cbb1ea5d60e13876c6858f3fe940d7
treeb4bcd75c2864c2facaa1637226d77b4da6b4214d
parentf5c856afa915191e244effc775df288d00dd68d8
vchiq_arm: Avoid use of mutex in add_completion

Claiming the completion_mutex within add_completion did prevent some
messages appearing twice, but provokes a deadlock caused by vcsm using
vchiq within a page fault handler.

Revert the use of completion_mutex, and instead fix the original
problem using more memory barriers.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c